Source du compilateur --------------------- http://gcc.gnu.org/fortran/ Compilation directe ------------------- gfortran -o Exemple.exe Exemple.f90 -fdollar-ok Compilation en plusieurs étapes ------------------------------- gfortran Exemple.f90 -c -fdollar-ok gfortran -o Exemple.exe *.o Compilation avec un Makefile ---------------------------- make Optimisation (prudence !) ------------------------- gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -O Compilation avec blas/lapack ---------------------------- gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -llapack -lblas Compilation avec pgplot ----------------------- Avec Ubuntu : gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -lpgplot Avec Windows : gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -I%GWMODDIR% -Wl,--subsystem,console -lpgplot -lGrWin -mwindows Compilation avec OpenMP ----------------------- gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -fopenmp Compilation avec MPI -------------------- gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -I C:\MPICH2\include -L C:\MPICH2\lib -lmpi -lfmpich2g -lmpicxx Debuger ------- gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -fcheck=all -ffpe-trap=invalid,zero,overflow,underflow -fbacktrace Exemple.exe Profiling --------- gfortran -o Exemple.exe Exemple.f90 -fdollar-ok -pg Exemple.exe gprof Exemple.exe